import axios from 'axios'
let id = 0
export function RPC(method,params=[]){
    if(!method) return
    return axios.post('/RPC',{"jsonrpc":"2.0","method":method,"params":params,"id":id++})
}
export function RPC2(method,params=[]){
    if(!method) return
    return axios.post('/RPC2',{"jsonrpc":"2.0","method":method,"params":params,"id":id++})
}
export function RPC3(method,params=[]){
    if(!method) return
    return axios.post('/RPC3',{"jsonrpc":"2.0","method":method,"params":params,"id":id++})
}
export default RPC